package top.eggcode.component.query.criteria;

import top.eggcode.component.query.model.ExpressionImpl;
import top.eggcode.component.query.predicate.InPredicate;
import top.eggcode.component.query.predicate.Predicate;

import java.util.List;

public class CriteriaBuilder {

    public Predicate not(Predicate predicate) {
        return predicate.not();
    }

    public <T> Predicate in(String expression, List<T> values) {
        InPredicate<T> in = new InPredicate<>(new ExpressionImpl<>(expression, String.class), values);
        return in;

    }
}
